#ifndef SHADER_H
#define SHADER_H

#include <GL/glew.h>
#include <string>

using namespace std;

class Shader
{
public:

	// Constructor/destructor
    Shader(string vfn, string ffn);
	~Shader();

	void turnShadersOn();
	void turnShadersOff();

    GLuint getProgram(){return this->p;}

protected:	

private:
	
	GLuint v,f,p;

	//Methods that read and write shader files.
	char *textFileRead(const char *fn);
	int textFileWrite(char *fn, char *s);

};

#endif
